home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3level.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_LEVEL_H = 1;
- include("real/objects/r3prim.js")
-
-
- var R3CLID_LEVEL = 143;
-
-
-
-
- // Description: Inserts new sub object at the head of the children list
- // p1: Boolean, don't send childchanged method
- // p3: Object, address of the object to be inserted
-
- R3LEVM_ADDTAIL = 143000;
-
- function mR3LEVM_ADDTAIL(p1, p3) {
- DoA2(this.r3obj, 143000, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Insert given object to the head of the children list
- // p1: Boolean, don't send childchanged method
- // p3: Object, object to be inserted
-
- R3LEVM_ADDHEAD = 143001;
-
- function mR3LEVM_ADDHEAD(p1, p3) {
- DoA2(this.r3obj, 143001, p1, R3TID_BOOLEAN, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Remove the given children from the children list
- // p3: Object, sub object to be removed
-
- R3LEVM_REMOVE = 143002;
-
- function mR3LEVM_REMOVE(p3) {
- DoA(this.r3obj, 143002, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Enumerates sub objects (not recursive). If the callback returns a positive value, enumeration continues
- // to the next sub object. If 0 or negative value is returned, enumeration is cancelled
- // and the return value from the callback is returned to the caller.
- // p3: Tag[], reserved for future use
-
- R3LEVM_ENUMCHILDREN = 143003;
-
- function mR3LEVM_ENUMCHILDREN(p3) {
- Do(this.r3obj, 143003, p3, R3TID_TAG, R3TNF_ARRAY);
- }
-
- // Description: Fetch sub object by its ordnum. The first sub object corresponds to the ordnum
- // 0.
- // Returns: Object, address of the object or NULL if ordnum is higher than the number of
- // sub objects
- // p3: Integer, ordnum of the sub object to be returned
-
- R3LEVM_GETSUBBYORDNUM = 143004;
-
- function mR3LEVM_GETSUBBYORDNUM(p3) {
- return R3ToJS( DoA(this.r3obj, 143004, p3, R3TID_INTEGER, 0));
- }
-
- // Description: Add new simulation function for the level class.
- // Returns: Boolean, TRUE if succeeded, FALSE otherwise
- // p1: Integer, NULL if OBJECTWISE effect, otherwise tag id for the attribute to be hold the
- // cause/affect information.
- // p2: Integer, Type of the simulation to be plugged in, see R3SIMTYPE_ codes below
-
- R3LEVCM_REGISTERSIMULATIONFU = 143005;
-
- function mR3LEVCM_REGISTERSIMULATIONFU(p1, p2) {
- return DoA3(this.r3obj, 143005, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Insert new object after the given node
- // Returns: Boolean, true of node was found
- // p1: Boolean, don't send childchanged method
- // p2: Object, previous object
- // p3: Object, object to be inserted
-
- R3LEVM_INSERT = 143006;
-
- function mR3LEVM_INSERT(p1, p2, p3) {
- return DoA3(this.r3obj, 143006, p1, R3TID_BOOLEAN, 0, p2, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: callback method for R3PRIMCA_SetParentXxx.
- // p1: Object, old parent
- // p2: Object, new parent
- // p3: Object, child whose parent is to be changed.
-
- R3LEVCM_SETPARENT = 143007;
-
- function mR3LEVCM_SETPARENT(p1, p2, p3) {
- DoA3(this.r3obj, 143007, p1, R3TID_OBJECT, 0, p2, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
- }
-
- // Description: Enumerate target objects for the given constructor.
- // p1: Object, constructor object
- // p2: Integer, constructor method
- // p3: Integer, callback data
-
- R3LEVM_ENUMTARGETS = 143008;
-
- function mR3LEVM_ENUMTARGETS(p1, p2, p3) {
- DoA3(this.r3obj, 143008, p1, R3TID_OBJECT, 0, p2, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
- }
-
- // Description: Internal methods for average map related use
-
- R3LEVM_SIBLINGCHANGED = 143010;
-
- function mR3LEVM_SIBLINGCHANGED() {
- DoA(this.r3obj, 143010, 0, R3TID_INTEGER, 0);
- }
-
-
-
-
- R3LEVA_Sub = 143500;
- function GetR3LEVA_Sub() {
- return R3Get(this.r3obj, R3LEVA_Sub, R3TID_LIST, R3TNF_ARRAY);
- }
-
- R3LEVA_Boolean = 143501;
- function SetR3LEVA_Boolean(value) {
- R3Set(this.r3obj, R3LEVA_Boolean, value, R3TID_INTEGER, 0);
- }
-
- function GetR3LEVA_Boolean() {
- return R3Get(this.r3obj, R3LEVA_Boolean, R3TID_INTEGER, 0);
- }
-
- var R3LEVA_OrdNum = 143502; // Integer
- R3LEVA_HasRenderGeometry = 143503;
- function GetR3LEVA_HasRenderGeometry() {
- return R3Get(this.r3obj, R3LEVA_HasRenderGeometry, R3TID_INTEGER, 0);
- }
-
- R3LEVA_Simulation = 143504;
- function SetR3LEVA_Simulation(value) {
- R3Set(this.r3obj, R3LEVA_Simulation, value, R3TID_INTEGER, 0);
- }
-
- function GetR3LEVA_Simulation() {
- return R3Get(this.r3obj, R3LEVA_Simulation, R3TID_INTEGER, 0);
- }
-
- R3LEVA_SubCount = 143508;
- function GetR3LEVA_SubCount() {
- return R3Get(this.r3obj, R3LEVA_SubCount, R3TID_INTEGER, 0);
- }
-
- R3LEVA_Children = 143509;
- function GetR3LEVA_Children(index) {
- return R3GetIndexed(this.r3obj, R3LEVA_Children, index, R3TID_OBJECT, 0);
- }
-
- var R3SIT_INACTIVE = 0;
- var R3SIT_BOTH = 1;
- var R3SIT_SUBJECT = 2;
- var R3SIT_OBJECT = 3;
- var R3SIMTYPE_OBJECTWISE = 0;
- var R3SIMTYPE_PAIRWISE = 1;
- var R3SIMTYPE_PAIRWISEASYMM = 2;
- var R3BOOL_OR = 0;
- var R3BOOL_AND = 1;
- var R3BOOL_BRT = 2;
- var R3BOOL_MAP = 3;
-
-
- function r3Level () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_LEVEL, arguments);
- }
- // Methods
- this.ADDTAIL=mR3LEVM_ADDTAIL;
- this.ADDHEAD=mR3LEVM_ADDHEAD;
- this.REMOVE=mR3LEVM_REMOVE;
- this.ENUMCHILDREN=mR3LEVM_ENUMCHILDREN;
- this.GETSUBBYORDNUM=mR3LEVM_GETSUBBYORDNUM;
- this.REGISTERSIMULATIONFU=mR3LEVCM_REGISTERSIMULATIONFU;
- this.INSERT=mR3LEVM_INSERT;
- this.SETPARENT=mR3LEVCM_SETPARENT;
- this.ENUMTARGETS=mR3LEVM_ENUMTARGETS;
- this.SIBLINGCHANGED=mR3LEVM_SIBLINGCHANGED;
-
- // Attributes
- this.GetSub=GetR3LEVA_Sub;
- this.GetBoolean=GetR3LEVA_Boolean;
- this.SetBoolean=SetR3LEVA_Boolean;
- this.GetHasRenderGeometry=GetR3LEVA_HasRenderGeometry;
- this.GetSimulation=GetR3LEVA_Simulation;
- this.SetSimulation=SetR3LEVA_Simulation;
- this.GetSubCount=GetR3LEVA_SubCount;
- this.GetChildren=GetR3LEVA_Children;
- }
-
- r3Level.prototype=new r3Primitive;
- // r3level.h_H